import os


class Config:
    SECRET_KEY = os.getenv('SECRET_KEY', 'your_secret_key')

    # 主数据库配置
    # SQLALCHEMY_DATABASE_URI = os.getenv('MAIN_DB_URL', 'postgresql://root:root@localhost/zdk')
    SQLALCHEMY_DATABASE_URI = os.getenv('MAIN_DB_URL', 'postgresql://root:root@localhost/zdk')
    SQLALCHEMY_BINDS = {
        'analytics': os.getenv('ANALYTICS_DB_URL', 'mysql://user:pass@localhost/analytics_db')
    }
    SQLALCHEMY_TRACK_MODIFICATIONS = False